package com.umpay.utils.mail;

import java.util.Properties;

/**
 * smtp 发送邮件
 * 
 */
public class SMTP_Sender extends MailSender {

    @Override
    public Properties getProperties() {
	Properties props = new Properties();
	props.put("mail.transport.protocol", "smtp");
	// # SMTP 主机地址
	props.put("mail.smtp.host", this.serverHost);
	props.put("mail.smtp.port", this.serverPort + "");
	// #指定 SMTP 需要验证
	props.put("mail.smtp.auth", this.isAuthen + "");
	props.put("username", this.userName);
	props.put("password", this.userPwd);
	return props;
    }

}
